home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Freeware / Programare / nvu / nvu-0.80-win32-installer-full.exe / {app} / chrome / help.jar / content / help / help.xul < prev    next >
Extensible Markup Language  |  2005-01-28  |  20KB  |  383 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?xml-stylesheet href="chrome://help/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://help/skin/sidebar.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
  6.  
  7. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  8.  
  9. <?xul-overlay href="chrome://help/content/helpContextOverlay.xul"?>
  10. <!DOCTYPE window [
  11.     <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
  12.     %brandDTD;
  13.     <!ENTITY % helpDTD SYSTEM "chrome://help/locale/help.dtd">
  14.     %helpDTD;
  15.     <!ENTITY % browserDTD SYSTEM "chrome://editor/locale/editor.dtd" >
  16.     %browserDTD;
  17.     <!ENTITY % findDTD SYSTEM "chrome://global/locale/finddialog.dtd" >
  18.     %findDTD;
  19. ]>
  20.  
  21. <window id="help"
  22.         windowtype="mozilla:help"
  23.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  24.         width="700"
  25.         height="550"
  26.         persist="width height screenX screenY"
  27.         onload="init();"
  28.         onunload="uninitFindBar(); window.XULBrowserWindow.destroy();">
  29.  
  30.     <script type="application/x-javascript" src="chrome://help/content/toolbarCustomization.js"/>
  31.     <script type="application/x-javascript" src="chrome://help/content/help.js"/>
  32.     <script type="application/x-javascript" src="chrome://navigator/content/sessionHistoryUI.js"/>
  33.     <script type="application/x-javascript" src="chrome://global/content/findBar.js"/>
  34.     <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  35.     <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
  36.  
  37.     <stringbundle id="bundle_findBar" src="chrome://browser/locale/browser.properties"/>
  38.     
  39.     <menupopup id="backMenu" position="after_start"
  40.         onpopupshowing="return createBackMenu(event);"
  41.         oncommand="gotoHistoryIndex(event);"/>
  42.     <menupopup id="forwardMenu" position="after_start"
  43.         onpopupshowing="return createForwardMenu(event);"
  44.         oncommand="gotoHistoryIndex(event);"/>
  45.     <popupset id="contentAreaContextSet"/>
  46.     <popup id="toolbar-context-menu">
  47.       <menuitem command="cmd_CustomizeToolbars"
  48.                 label="&viewCustomizeToolbar.label;"
  49.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  50.     </popup>
  51.     <broadcasterset id="helpBroadcasters">
  52.         <broadcaster id="canGoBack"    disabled="true"/>
  53.         <broadcaster id="canGoForward" disabled="true"/>
  54.     </broadcasterset>
  55.     <commandset id="globalEditMenuItems"/>
  56.     <commandset id="selectEditMenuItems">
  57.         <command id="cmd_close" oncommand="close();"/>
  58.         <command id="Help:Home" oncommand="goHome();"/>
  59.         <command id="Help:Back" oncommand="goBack();"       observes="canGoBack"/>
  60.         <command id="Help:Forward" oncommand="goForward();" observes="canGoForward"/>
  61.         <command id="Help:ToggleSidebar" oncommand="toggleSidebar();"/>
  62.         <command id="cmd_closeWindow" oncommand="close();"/>
  63.         <command id="cmd_textZoomReduce" oncommand="ZoomManager.prototype.getInstance().reduce();"/>
  64.         <command id="cmd_textZoomEnlarge" oncommand="ZoomManager.prototype.getInstance().enlarge();"/>
  65.         <command id="cmd_CustomizeToolbars" oncommand="CustomizeToolbar('help-toolbox');"/>
  66.         <command id="cmd_find" oncommand="onFindCmd();"/>
  67.         <command id="cmd_findAgain" oncommand="onFindAgainCmd();"/>
  68.         <command id="cmd_findPrevious" oncommand="onFindPreviousCmd();"/>    
  69.     </commandset>
  70.     <keyset id="keys">
  71.         <key id="goHome"      keycode="VK_HOME"  command="Help:Home" modifiers="alt"/>
  72.         <key id="goBackKb"    keycode="VK_LEFT"  command="Help:Back" modifiers="alt"/>
  73.         <key id="goForwardKb" keycode="VK_RIGHT" command="Help:Forward" modifiers="alt"/>
  74.         <key keycode="VK_BACK" command="Help:Back"/>
  75.         <key keycode="VK_BACK" command="Help:Forward" modifiers="shift"/>
  76.         <key id="printKb" key="&printCmd.commandkey;" oncommand="print();"
  77.             modifiers="accel"/>  
  78.         <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  79.         <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  80.         <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  81.         <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  82.         <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  83.         <key keycode="VK_F5" oncommand="reload();"/>
  84.         <key id="key_closeWindow" key="&closeWindow.commandkey;"
  85.             command="cmd_closeWindow" modifiers="accel"/>
  86.         <key id="key_closeWindow2" keycode="VK_ESCAPE"
  87.             command="cmd_closeWindow"/>
  88.         <key id="key_textZoomEnlarge" key="&textZoomEnlargeCmd.commandkey;"
  89.             command="cmd_textZoomEnlarge" modifiers="accel"/>
  90.         <key id="key_textZoomEnlarge2" key="&textZoomEnlargeCmd.commandkey2;"
  91.             command="cmd_textZoomEnlarge" modifiers="accel"/>
  92.         <key id="key_textZoomReduce" key="&textZoomReduceCmd.commandkey;"
  93.             command="cmd_textZoomReduce" modifiers="accel"/>
  94.         <key id="key_textZoomReset" key="&textZoomResetCmd.commandkey;"
  95.             oncommand="ZoomManager.prototype.getInstance().reset();" modifiers="accel"/>
  96.         <key id="key_toggleSidebar" keycode="VK_F9" command="Help:ToggleSidebar"/>
  97.         <key id="key_viewNextHelpPanel" keycode="VK_TAB"
  98.              oncommand="showRelativePanel(true);" modifiers="control"/>
  99.         <key id="key_viewPrevHelpPanel" keycode="VK_TAB"
  100.              oncommand="showRelativePanel(false);" modifiers="control,shift"/>
  101.     </keyset>
  102.     <stringbundle id="bundle_viewZoom"/>
  103.     <stringbundle id="findBundle"
  104.         src="chrome://global/locale/finddialog.properties"/>
  105.     <stringbundle id="bundle_help"
  106.         src="chrome://help/locale/help.properties"/>
  107.  
  108.     <vbox flex="1">
  109.  
  110.         <toolbox id="help-toolbox" class="toolbox-top" mode="icons" iconsize="small" customizable="true">
  111.  
  112.             <toolbarpalette id="HelpToolbarPalette">
  113.  
  114.                 <toolbarbutton id="help-sidebar-button"
  115.                     class="toolbarbutton-1"
  116.                     tooltiptext="&sidebarBtn.tooltip;"
  117.                     customizeable="true" label="&sidebarBtn.label;"
  118.                     command="Help:ToggleSidebar"/>
  119.                 <toolbarbutton id="help-back-button" type="menu-button"
  120.                         class="browserButton" label="&backButton.label;"
  121.                         oncommand="if (event.target==this) goBack(); else gotoHistoryIndex(event);"
  122.                         observes="canGoBack" context="backMenu"
  123.                         tooltiptext="&backButton.tooltip;">
  124.                     <menupopup context=""
  125.                         onpopupshowing="createBackMenu(event);"/>
  126.                 </toolbarbutton>
  127.                 <toolbarbutton id="help-forward-button" type="menu-button"
  128.                         class="browserButton"
  129.                         label="&forwardButton.label;"
  130.                         oncommand="if (event.target==this) goForward(); else gotoHistoryIndex(event);"
  131.                         tooltiptext="&forwardButton.tooltip;"
  132.                         observes="canGoForward">
  133.                     <menupopup context=""
  134.                         onpopupshowing="createForwardMenu(event);"/>
  135.                 </toolbarbutton>
  136.                 <toolbarbutton id="help-home-button"
  137.                     class="toolbarbutton-1" label="&homeButton.label;"
  138.                     tooltiptext="&homeButton.tooltip;"
  139.                     command="Help:Home"/>
  140.                 <toolbarbutton id="help-find-button"
  141.                     class="toolbarbutton-1" label="&findBtn.label;"
  142.                     command="cmd_find"/>
  143.                 <toolbarbutton id="help-zoom-small-button"
  144.                     class="toolbarbutton-1" label="&textZoomReduceBtn.label;"
  145.                     tooltiptext="&textZoomReduceBtn.tooltip;"
  146.                     command="cmd_textZoomReduce"/>
  147.                 <toolbarbutton id="help-zoom-large-button"
  148.                     class="toolbarbutton-1" label="&textZoomEnlargeBtn.label;"
  149.                     tooltiptext="&textZoomEnlargeBtn.tooltip;"
  150.                     command="cmd_textZoomEnlarge"/>
  151.                 <toolbarbutton id="help-print-button" class="browserButton"
  152.                     label="&printButton.label;"
  153.                     oncommand="print();"
  154.                     tooltiptext="&printButton.tooltip;"/>
  155.                 <toolbarbutton id="help-toolbar-customization" class="toolbarbutton-1"
  156.                     label="&cmd_CustomizeToolbars.label;"
  157.                     command="cmd_CustomizeToolbars"
  158.                     tooltiptext="&customizeButton.tooltip;"/>
  159.  
  160.                 <toolbaritem id="throbber-box" title="&throbberItem.title;"
  161.                     align="center" pack="center">
  162.                   <button id="help-throbber" tooltiptext="&homeButton.tooltip;"
  163.                     command="Help:Home"/>
  164.                 </toolbaritem>
  165.             </toolbarpalette>
  166.             <toolbar id="helpToolbar" toolbarname="Help Toolbar" class="toolbar-primary
  167.                     chromeclass-toolbar" mode="icons" iconsize="small"
  168.                     customizable="true"
  169.                     defaultset="help-sidebar-button,separator,help-back-button,help-forward-button,help-home-button,separator,help-toolbar-customization,spring,help-print-button,separator,spacer,throbber-box"
  170.                     context="toolbar-context-menu"/>
  171.             <toolbarset id="customToolbars"/>
  172.         </toolbox>
  173.  
  174.         <hbox flex="1">
  175.             <vbox id="helpsidebar-box" persist="width">
  176.  
  177.                 <toolbarbutton id="help-glossary-btn"
  178.                     class="box-texttab texttab-sidebar"
  179.                     label="&glossarytab.label;"
  180.                     oncommand="showPanel('help-glossary')"
  181.                     accesskey="&glossarytab.accesskey;"/>
  182.                 <tree id="help-glossary-panel" class="focusring"
  183.                         flex="1" hidecolumnpicker="true"
  184.                         hidden="true" datasources="rdf:null"
  185.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  186.                         ref="urn:root" flags="dont-build-content"
  187.                         onselect="onselect_loadURI(this)">
  188.                     <template>
  189.                         <rule>
  190.                             <conditions>
  191.                                 <content uri="?uri"/>
  192.                                 <triple subject="?uri"
  193.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  194.                                     object="?subheadings"/>
  195.                                 <member container="?subheadings"
  196.                                     child="?subheading"/>
  197.                             </conditions>
  198.                             <bindings>
  199.                                 <binding subject="?subheading"
  200.                                     predicate="http://home.netscape.com/NC-rdf#name"
  201.                                     object="?name"/>
  202.                             </bindings>
  203.  
  204.                             <action>
  205.                                 <treechildren>
  206.                                     <treeitem uri="?subheading">
  207.                                         <treerow>
  208.                                             <treecell label="?name"/>
  209.                                         </treerow>
  210.                                     </treeitem>
  211.                                 </treechildren>
  212.                             </action>
  213.                         </rule>
  214.                     </template>
  215.                     <treecols>
  216.                         <treecol id="GlossaryNameColumn" flex="1"
  217.                             hideheader="true" primary="true"/>
  218.                     </treecols>
  219.                 </tree>
  220.  
  221.                 <toolbarbutton id="help-index-btn" class="box-texttab texttab-sidebar"
  222.                     label="&indextab.label;"
  223.                     oncommand="showPanel('help-index');expandAllIndexEntries();"
  224.                     accesskey="&indextab.accesskey;"/>
  225.  
  226.                 <tree id="help-index-panel" class="focusring"
  227.                         flex="1" datasources="rdf:null"
  228.                         hidecolumnpicker="true" hidden="true"
  229.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  230.                         ref="urn:root"
  231.                         flags="dont-build-content dont-test-empty"
  232.                         onselect="onselect_loadURI(this)">
  233.                     <template>
  234.                         <rule>
  235.                             <conditions>
  236.                                 <content uri="?uri"/>
  237.                                 <triple subject="?uri"
  238.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  239.                                     object="?subheadings"/>
  240.                                 <member container="?subheadings"
  241.                                     child="?subheading"/>
  242.                             </conditions>
  243.                             <bindings>
  244.                                 <binding subject="?subheading"
  245.                                     predicate="http://home.netscape.com/NC-rdf#name"
  246.                                     object="?name"/>
  247.                             </bindings>
  248.  
  249.                             <action>
  250.                                 <treechildren>
  251.                                     <treeitem uri="?subheading">
  252.                                         <treerow>
  253.                                             <treecell label="?name"/>
  254.                                         </treerow>
  255.                                     </treeitem>
  256.                                 </treechildren>
  257.                             </action>
  258.                         </rule>
  259.                     </template>
  260.                     <treecols>
  261.                         <treecol id="IndexNameColumn" flex="1" hideheader="true"
  262.                             primary="true" sortActive="true"
  263.                             sortDirection="ascending" sort="?name"/>
  264.                     </treecols>
  265.                 </tree>
  266.  
  267.                 <toolbarbutton id="help-search-btn" class="box-texttab texttab-sidebar"
  268.                     label="&searchtab.label;"
  269.                     oncommand="showPanel('help-search')"
  270.                     accesskey="&searchtab.accesskey;"/>
  271.  
  272.                 <vbox id="help-search-panel" hidden="true" flex="1">
  273.                     <hbox align="center">
  274.                         <textbox id="findText" flex="1" oninput="doEnabling();"
  275.                             onkeypress="if ((event.keyCode
  276.                                 == KeyEvent.DOM_VK_ENTER) || (event.keyCode
  277.                                 == KeyEvent.DOM_VK_RETURN))
  278.                                 doFind();"/>
  279.                         <button id="findButton" default="true" disabled="true"
  280.                             label="&gobtn.label;" oncommand="doFind()"
  281.                             flex="0"/>
  282.                     </hbox>
  283.                     <tree id="help-search-tree" class="focusring"
  284.                             flex="1" hidecolumnpicker="true"
  285.                             datasources="rdf:null"
  286.                             containment="http://home.netscape.com/NC-rdf#child"
  287.                             ref="urn:root" flags="dont-build-content"
  288.                             onselect="onselect_loadURI(this)">
  289.                         <template>
  290.                             <rule>
  291.                                 <conditions>
  292.                                     <content uri="?uri"/>
  293.                                     <member container="?uri"
  294.                                         child="?subheading"/>
  295.                                 </conditions>
  296.  
  297.                                 <bindings>
  298.                                     <binding subject="?subheading"
  299.                                         predicate="http://home.netscape.com/NC-rdf#name"
  300.                                         object="?name"/>
  301.                                 </bindings>
  302.  
  303.                                 <action>
  304.                                     <treechildren>
  305.                                         <treeitem uri="?subheading">
  306.                                             <treerow>
  307.                                                 <treecell label="?name"/>
  308.                                             </treerow>
  309.                                         </treeitem>
  310.                                     </treechildren>
  311.                                 </action>
  312.                             </rule>
  313.                         </template>
  314.  
  315.                         <treecols>
  316.                             <treecol id="ResultsColumn" flex="1"
  317.                                 hideheader="true" primary="true"
  318.                                 sortActive="true" sortDirection="ascending"
  319.                                 sort="?name"/>
  320.                         </treecols>
  321.                     </tree>
  322.                 </vbox>
  323.  
  324.  
  325.                 <toolbarbutton id="help-toc-btn" class="box-texttab texttab-sidebar"
  326.                     label="&toctab.label;"
  327.                     oncommand="showPanel('help-toc')"
  328.                     accesskey="&toctab.accesskey;"/>
  329.                 <tree id="help-toc-panel" class="focusring"
  330.                         flex="1"  hidecolumnpicker="true"
  331.                         datasources="rdf:null"
  332.                         containment="http://home.netscape.com/NC-rdf#subheadings"
  333.                         ref="urn:root" flags="dont-build-content"
  334.                         onselect="onselect_loadURI(this)">
  335.                     <template>
  336.                         <rule>
  337.                             <conditions>
  338.                                 <content uri="?uri"/>
  339.                                 <triple subject="?uri"
  340.                                     predicate="http://home.netscape.com/NC-rdf#subheadings"
  341.                                     object="?subheadings"/>
  342.                                 <member container="?subheadings"
  343.                                     child="?subheading"/>
  344.                             </conditions>
  345.  
  346.                             <bindings>
  347.                                 <binding subject="?subheading"
  348.                                     predicate="http://home.netscape.com/NC-rdf#name"
  349.                                     object="?name"/>
  350.                             </bindings>
  351.  
  352.                             <action>
  353.                                 <treechildren>
  354.                                     <treeitem uri="?subheading">
  355.                                         <treerow>
  356.                                             <treecell label="?name"/>
  357.                                         </treerow>
  358.                                     </treeitem>
  359.                                 </treechildren>
  360.                             </action>
  361.                         </rule>
  362.                     </template>
  363.                     <treecols>
  364.                         <treecol id="NameColumn" flex="1" hideheader="true"
  365.                             primary="true"/>
  366.                     </treecols>
  367.                 </tree>
  368.  
  369.             </vbox>
  370.  
  371.             <splitter id="helpsidebar-splitter" collapse="before"
  372.                     persist="state hidden" autostretch="never" state="open">
  373.             </splitter>
  374.  
  375.             <vbox id="appcontent" flex="3">
  376.               <browser context="contentAreaContextMenu"
  377.                   type="content-primary" id="help-content"
  378.                   src="about:blank" flex="1"/>
  379.             </vbox>
  380.         </hbox>
  381.     </vbox>
  382. </window>
  383.